setNumericShortcut
open fun setNumericShortcut(@NonNull item: MenuItem, numericChar: Char, numericModifiers: Int)(source)
Change the numeric shortcut and modifiers associated with this item.
See Menu for the menu types that support shortcuts.
Parameters
item
item for which to set the shortcut.
numericChar
The numeric shortcut key. This is the shortcut when using a 12-key (numeric) keyboard.
numericModifiers
The modifier associated with the shortcut. It should be a combination of META_META_ON, META_CTRL_ON, META_ALT_ON, META_SHIFT_ON, META_SYM_ON, META_FUNCTION_ON.